#ifndef BROWSER_H
#define BROWSER_H
#include <DMainWindow>
#include <QWebEngineProfile>
#include <QWebEngineView>
#include <QWebEnginePage>

DWIDGET_USE_NAMESPACE

class browser : public DMainWindow
{
public:
    browser();
private:
    QWebEngineView *view = new QWebEngineView();
    QWebEngineProfile *profile = new QWebEngineProfile("myCustomProfile", view);
    QWebEnginePage *page = new QWebEnginePage(profile, view);

public:
    void openUrl(QString url);
};

#endif // BROWSER_H
